<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<title>ComPro Admission</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="<c:url value="/resources/style.css"/>" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="resources/js/jquery.js"></script>
<script type="text/javascript" src="resources/js/cufon-yui.js"></script>
<script type="text/javascript" src="resources/js/arial.js"></script>
<script type="text/javascript" src="resources/js/cuf_run.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('#approve').click(function() {
			$('#resetForm').attr('action', 'resetApprove');
			$('#resetForm').attr('method', 'post');
			$('#resetForm').submit();
		});
		$('#reject').click(function() {
			$('#resetForm').attr('action', 'resetReject');
			$('#resetForm').attr('method', 'post');
			$('#resetForm').submit();
		});
	});
</script>
</head>
<body>

	<%@include file="header.jsp"%>
	<div class="main">
		<div class="body">
			<div class="body_resize">
				<div class="left">
					<form id="resetForm" name="resetForm">
					<br/>
					<h2>Reset Application</h2>
					<table>
						
						<tr>
							<th>Name</th>
							<td>:</td>
							<td>${application.user.firstname} ${application.user.lastname}</td>
						</tr>
						
						<tr>
							<th>Application ID</th>
							<td>:</td>
							<td>${application.id} </td>
						</tr>
						
						<tr>
							<th>Application Disposition</th>
							<td>:</td>
							<td>${application.disposition} </td>
						</tr>
						
						<tr>
							<th>Application Reason</th>
							<td>:</td>
							<td>${application.note} </td>
						</tr>
					</table>
					<br/>
					<br/>
						<input type="submit" value="Approve" id="approve" />
						<input type="submit" value="Reject" id="reject" />
					</form>
				</div>

				<%@include file="sideAdmission.jsp"%>



			</div>
			<br />
		</div>


		<%@include file="footer.jsp"%>
	</div>
	<div align=center></div>
</body>
</html>
